<table border="1" cellpadding="3" cellspacing="0" bordercolor="#000000" style="border-collapse: collapse; table-layout:fixed;word-wrap:break-word;" width="100%" class="table_common">
    <tr>
        <th rowspan="2">区域</th>
        <th rowspan="2">大区</th>
        <th rowspan="2">小区</th>
        <th rowspan="2">省份</th>
        <th rowspan="2">城市</th>
        <th rowspan="2">专营店</th>
        <th rowspan="2">专营店编码</th>
        <th rowspan="2">所属双月</th>
        <th rowspan="2">双月额度</th>
        <th colspan="3">预算申请费用</th>
        <th colspan="3">预算审核费用</th>
        <th colspan="3">结算申请费用</th>
        <th colspan="3">结算审核费用</th>
    </tr>
    <tr>
    	<th>线上广宣预算申请费用</th>
    	<th>线下活动预算申请费用</th>
    	<th>计划申请总费用</th>
    	<th>线上广宣预算审核费用</th>
    	<th>线下活动预算审核费用</th>
    	<th>预算审核总费用</th>
        <th>线上广宣结算申请费用</th>
        <th>线下活动结算申请费用</th>
        <th>结算申请总费用</th>
        <th>线上广宣结算审核费用</th>
        <th>线下活动结算审核费用</th>
        <th>结算审核总费用</th>
    </tr>
    <?php
    foreach($procIds as $procId){
		$procData = isset($procList[$procId]) ? $procList[$procId] : array();
		$storeData = isset($allStoreList[$procData['storeId']]) ? $allStoreList[$procData['storeId']] : array();
		$detailMoney = isset($projectMoneyDetail[$procId]) ? $projectMoneyDetail[$procId] : array();
        if ($detailMoney['budgetApply']['total'] == 0) {
            continue;
        }
    ?>
    <tr>
        <td><?=$storeData['area'];?></td>
        <td><?=$storeData['region'];?></td>
        <td><?=$storeData['spsarea'];?></td>
        <td><?=$storeData['province'];?></td>
        <td><?=$storeData['city'];?></td>
        <td><?=$storeData['storeName'];?></td>
        <td><?=$storeData['coding'];?></td>
        <td><?=$procData['timeUnitStr'];?></td>
        <td><?=$procData['fixedMoney'];?></td>
        <td><?=$detailMoney['budgetApply']['online'];?></td>
        <td><?=$detailMoney['budgetApply']['offline'];?></td>
        <td><?=$detailMoney['budgetApply']['total'];?></td>
        <td><?=$detailMoney['budgetAudit']['online'];?></td>
        <td><?=$detailMoney['budgetAudit']['offline'];?></td>
        <td><?=$detailMoney['budgetAudit']['total'];?></td>
        <td><?=$detailMoney['settleApply']['online'];?></td>
        <td><?=$detailMoney['settleApply']['offline'];?></td>
        <td><?=$detailMoney['settleApply']['total'];?></td>
        <td><?=$detailMoney['settleAudit']['online'];?></td>
        <td><?=$detailMoney['settleAudit']['offline'];?></td>
        <td><?=$detailMoney['settleAudit']['total'];?></td>
    </tr>
    <?php }?>
</table>